﻿using System;

namespace _46_向特性类的构造函数传递参数_特性
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }

    [AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
    public class DoubleRangeAttribute : Attribute
    {
        public double Largest { get; set; }

        public DoubleRangeAttribute(double largest)
        {
            largest = largest;
        }
    }

    [DoubleRange(700d)]
    public class Test
    {

    }

}
